import React, { Component } from 'react'
import { Layout } from 'antd';
import { MenuUnfoldOutlined, MenuFoldOutlined } from '@ant-design/icons';
const { Header } = Layout;

export default class index extends Component {
    render() {
        return (
            <Header className="site-layout-background" style={{ padding: 0, backgroundColor: "white" }}>
                {React.createElement(this.props.collapsed ? MenuUnfoldOutlined : MenuFoldOutlined, {
                    className: 'trigger',
                    onClick: this.props.toggle,
                })}
            </Header>
        )
    }
}
